package editeurimpl;
/**
 * @(#) Selection.java
 */

public class Selection
{
        private int deb;
        
        private int fin;
                
        public Selection(){deb=0;fin=0;}
        
        public void setdebut( int x ){deb=x;}
        
        public void setfin( int x ){fin=x;}

        public int getdebut( ){return deb;}
        
        public int getfin( ){return fin;}
        
        public boolean active(){return deb<fin;}
        
        public void desactiver(){fin=0;}
        
        public int gettaille(){return fin-deb;}
}